package icu.hilin.core;

import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.eventbus.MessageCodec;

public class Contant {

    public static final Vertx VERTX = Vertx.vertx();
    public static final EventBus EVENT_BUS = VERTX.eventBus();

    static {
        EVENT_BUS.registerDefaultCodec(Object.class, new MessageCodec<>() {
            @Override
            public void encodeToWire(Buffer buffer, Object o) {

            }

            @Override
            public Object decodeFromWire(int pos, Buffer buffer) {
                return null;
            }

            @Override
            public Object transform(Object o) {
                return null;
            }

            @Override
            public String name() {
                return null;
            }

            @Override
            public byte systemCodecID() {
                return 0;
            }
        });
    }

}
